package sqlstore

import (
    "fmt"
    "errors"
    "database/sql"

    "github.com/astaxie/beego"
    "gopkg.in/jetgeng/mergo.v1"

    "yikexing.com.cn/wyws/bus"
    "yikexing.com.cn/wyws/models"
    "yikexing.com.cn/wyws/common"
)

//var db *sqlx.DB

func init() {
	bus.AddHandler("sql", SearchVehicle)
	bus.AddHandler("sql", InsertVehicle)
	bus.AddHandler("sql", UpdateVehicle)
	bus.AddHandler("sql", DeleteVehicle)
    bus.AddHandler("sql", getFleetsOfVehicle)
}

func SearchVehicle(cmd *models.SearchVehicleCommand, datas map[string]interface{}) error {
	return nil
}

func InsertVehicle(cmd *models.VehicleCommand, datas map[string]interface{}) error {
    return nil
}

func UpdateVehicle(cmd *models.VehicleUpdateCommand, datas map[string]interface{}) error {
    return nil
}

func DeleteVehicle(cmd *models.DeleteVehicleCommand, datas map[string]interface{}) error {
    return nil
}

func getFleetsOfVehicle(cmd *models.FleetOfVehicleCommand, datas map[string]interface{}) error {
    return nil
}
